﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Net;
using System.Text;
using System.Threading.Tasks;
using NUnit.Framework;
using NUnit.Framework.Internal;
using SDCloudSolution.SDCloud.ServiceAgent;

namespace SDCloud.ServiceAgentTests
{
    [TestFixture]
    public class ServiceModelTests
    {

        public void TestModel(string path)
        {
            try
            {
                ServiceModel serviceModel = new ServiceModel(
                    TestConsts.PythonExecutionPath,
                    TestConsts.PythonExecutionArguments,
                    TestConsts.PythonServiceUrl,
                    100,
                    TestConsts.PythonServiceTimeout);

                var result = serviceModel.GetResponse($"{TestConsts.RunMdlModel}?modelPath={WebUtility.UrlEncode(path)}");

            }
            catch (Exception ex)
            {
                
            }
        }
    }
}
